<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.min.js"></script>
</head>

<body>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <script>
        $(function () {
            $('button').click(function () {
                // $(this).css('color', 'red')
                // $(this).siblings().css('color', '')
                // 链式写法 代码更简洁一点
                $(this).css('color', 'red').siblings().css('color', '')
            })
        })
    </script>
</body>

</html>